// index 页数据
export const state = () => ({
  banner: [], // 轮播图数据
  playlistCatalogue: [], // 歌单分类数据
  playlist: [], // 歌单数据
  playMvList: [] // 推荐mv数据
})

export const mutations = {
  setBanner (state, val) {
    state.banner = val
  },
  setPlaylistCatalogue (state, val) {
    state.playlistCatalogue = val
  },
  setPlaylist (state, val) {
    state.playlist = val
  },
  setPlayMvList (state, val) {
    state.playMvList = val
  }
}

export const actions = {
  nuxtServerInit ({ commit }, { req }) {
    // 处理服务器初始化的异步操作
    // eslint-disable-next-line no-console
  }
}
